<?php 

if($_FILES){
	// print_r($_FILES);
	
	$name = urldecode($_POST['username']);
	$name = iconv('utf-8','gbk', $name);
	$tmp = file_get_contents($_FILES['file']['tmp_name']);
	file_put_contents($name, $tmp,FILE_APPEND);
}
	

 ?>